package n7.restaurant.java.Entity;

import java.util.Vector;

import n7.restaurant.java.Enum.Etat_Plat;
import n7.restaurant.java.Enum.TypePlat;

public class Plat {
	private String nom;
	private int duree;
	private boolean pret;
	private int owner;

	public TypePlat getType() {
		return type;
	}

	public void setType(TypePlat type) {
		this.type = type;
	}

	public Plat(Plat p) {
		this.nom = p.getNom();
		this.duree = p.getDuree();
		this.type = p.getType();
		this.etat=Etat_Plat.new_one;
	}

	private Vector<String> noms_ingredient = new Vector<String>();
	private TypePlat type;
	private Etat_Plat etat;
	
	public Etat_Plat getEtat() {
		return etat;
	}

	public void setEtat(Etat_Plat etat) {
		this.etat = etat;
	}

	public static Vector<Plat> plats = new Vector<Plat>();

	public boolean isPret() {
		return pret;
	}

	public void setPret(boolean pret) {
		this.pret = pret;
	}

	public int getOwner() {
		return owner;
	}

	public void setOwner(int owner) {
		this.owner = owner;
	}

	public Vector<String> getIngredients() {
		return noms_ingredient;
	}

	public void setIngredients(Vector<String> ingredients) {
		this.noms_ingredient = ingredients;
	}

	public Plat() {

	}

	public Plat(String nom, int duree) {
		super();
		this.nom = nom;
		this.duree = duree;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int getDuree() {
		return duree;
	}

	public void setDuree(int duree) {
		this.duree = duree;
	}
}
